<div class="row">
	
	<h3>Search <small>Borrower</small></h3>
	<?if(isset($system_message))echo $system_message;
	echo validation_errors() !==''?'<div class="error">'.validation_errors().'</div>' : NULL;
	?>	
	
	<?@$this->load->view('librarian/tab');?>

	<!-- Tab panes -->
	<div class="tab-content">
	  <div class="tab-pane" id="home">
	  	
	  </div>

	  <div class="tab-pane active" id="profile">
	  	<?if(!empty($search)):?>
			<table class="table table-striped table-hover">
			<thead>
			<tr>
				<th>Username</th>
				<th>Fullname</th>
				<th>Role</th>
				<th>&nbsp;</th>
			</tr>
			</thead>
			<tbody>
			<?foreach($search as $k => $emp):?>
				<tr>
					<td><?=$emp->username?></td>
					<td><?=ucwords(strtolower($emp->fullname));?></td>
					<td><?=ucwords($emp->role);?></td>
					<td>
						<a href="<?=site_url('circulation/profile/employee/'.$emp->emp_id)?>" class="btn btn-sm btn-success"><i class="fa fa-book"></i>&nbsp; Profile</a>
					</td>
				</tr>
			<?endforeach;?>
			</tbody>
			</table>
		<?else:?>
			<div class="alert-box">
				<i class="icon-exclamation-sign icon-white"></i> Nothing found!
			</div>
		<?endif;?>
		<?=$links;?>
	  </div>
	</div>

</div>